<?php 
$this->breadcrumbs[Controller::getServiceType($st_id)] = array();
$this->breadcrumbs[UserModule::t('Рубрики')] = array();
?>

<?php if (0 < count($rubrics)):?>
<div class="row-fluid">
	<?php foreach($rubrics as $rubric):?>
	<div class="span3">
		<h2><a href="<?php echo Yii::app()->createUrl('/rubrics/single', array('st_id' => $st_id, 'rid' => $rubric['id'])); ?>"><?php echo GxHtml::encode($rubric['name']);?></a></h2>
		<?php if (0 < count($rubric['categories'])):?>
		<ul class="unstyled">
			<?php foreach($rubric['categories'] as $category):?>
			<li><a href="<?php echo Yii::app()->createUrl('/category', array('st_id' => $st_id,'rid'=>$rubric['id'], 'cid'=>$category['id']));?>"><?php echo GxHtml::encode($category['name']); ?></a><?php if('' != $category['description']):?><br /><small>(<?php echo GxHtml::encode($category['description']);?>)</small><?php endif;?></li>
			<?php endforeach;?>
		</ul>
		<?php endif;?>
	</div>
	<?php endforeach;?>
</div>
<?php else:?>
<p><?php echo Yii::t('app', 'Записи не найдены');?></p>
<?php endif;?>